package edu.hawaii.kukui

class ActivityTextAttempt {

  String verificationText
  String noteToAdmin

  String validateStatus
  String validateComment
  Date selectTimestamp
  Date submitTimestamp
  Date validateTimestamp
  Activity activity
  KukuiUser kukuiUser
  ActivityVerificationText activityVerificationText

  Date dateCreated
  Date lastUpdated

  static belongsTo = [activity: Activity, kukuiUser: KukuiUser, activityVerificationText: ActivityVerificationText]

  static constraints = {
    verificationText(maxSize: 1000, nullable:true)
    noteToAdmin(maxSize: 1500, nullable:true)
    validateStatus(inList: ["Selected", "Submitted", "Awarded", "Declined"], nullable: true)
    validateComment(maxSize: 1500, nullable:true)

  }
}
